
import bpy

import 全局控制.Node.插座.bl_插座基类 as 插座基类
import Core.bl_UI配色 as UI配色

import engine.initLIB.load_dll as engineLib
import ctypes













class C_Socket_物理几何形状_A1D(插座基类.C_Socket_基类):
	def __init__(self):
		super(C_Socket_物理几何形状_A1D, self).__init__()

	def draw(self, context, layout, node, text):
		layout.label(text=text+'[[geom]]', icon='CUBE')
	def draw_color(self, context, node):
		return UI配色.g_1D_物理几何形状插座颜色
		
	def f_getData(self):
		return engineLib.flexCAPI.f_取插座数据(ctypes.c_wchar_p(self.node.id_data.name), ctypes.c_wchar_p(self.node.name), ctypes.c_wchar_p(self.identifier))
		
	def f_setData(self, data):
		return engineLib.flexCAPI.f_bl_插座传入数据(
			ctypes.c_wchar_p(self.node.id_data.name), 
			ctypes.c_wchar_p(self.node.name), 
			ctypes.c_wchar_p(self.identifier), 
			ctypes.py_object(data),
			ctypes.c_bool(self.is_output)
		)

	def f_update(self):
		pass

















classes = (
	C_Socket_物理几何形状_A1D,

)

def register():
	for c in classes:
		bpy.utils.register_class(c)	

def unregister():
	for c in classes:
		bpy.utils.unregister_class(c)
	












